<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta name="csrf_token" id="token" content="{{ csrf_token() }}">
    @include('public.h5_head')
    <title>详情</title>
    <link href="{{env('CDN_DOMAIN_NAME')}}/css/font-awesome.min.css" rel="stylesheet">
    <script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/rem.js"></script>
    <link rel="stylesheet" type="text/css" href="{{ env('CDN_DOMAIN_NAME') }}/css/commoncss/common.css"/>
    <link rel="stylesheet" type="text/css" href="{{ env('CDN_DOMAIN_NAME') }}/css/lookDetails.css?v=1.0.5"/>
    <script src="{{ env('CDN_DOMAIN_NAME') }}/js/app.js"></script>
    <script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/common.js?v=1.0.2"></script>
</head>
<body>
<div id="box_Details">
    <div class="wrap">
        <div class="main_Details">
            <ul class="Details_ul">
                <li class="Details_li">
                    <span class="Details_sp">客户信息</span>
                </li>
                <li class="Details_li">
                    <span class="Details_sp">客户姓名</span>
                    <input type="text" class="Details_info" readonly UNSELECTABLE="on" onfocus="this.blur()" value="{{ $userinfo->username }}">
                </li>
                <li class="Details_li">
                    <span class="Details_sp">微信号</span>
                    <input type="text" class="Details_info" readonly UNSELECTABLE="on" onfocus="this.blur()" value="{{ $userinfo->wechat_code }}">
                </li>
                <li class="Details_li">
                    <span class="Details_sp">手机号码</span>
                    <input type="text" class="Details_info" readonly UNSELECTABLE="on" onfocus="this.blur()" value="{{ $user->user_tel }}">
                </li>
                <li class="Details_lis">
                    <span class="Details_span">店铺地址</span>
                    <textarea class="Details_txt" readonly UNSELECTABLE="on" onfocus="this.blur()">{{ $userinfo->user_area }}{{ $userinfo->area_detail }}</textarea>
                </li>
                <li class="Details_li">
                    <span class="Details_sp">意向品牌</span>
                    <div class="intention_div">

                        @if(strlen($userinfo->intention_brand) > 5)
                            <?php
                            $brands = explode(',',trim($userinfo->intention_brand,',') );
                            ?>
                            @foreach($brands as $k=>$v)
                                <span class="intention on">{{ $v }}</span>
                            @endforeach
                        @else
                            无
                        @endif
                    </div>
                </li>
                <li class="Details_li">
                    <span class="Details_sp">推荐人</span>
                    <input type="text" class="Details_info" readonly UNSELECTABLE="on" onfocus="this.blur()" value="{{ $user->recommender }}" placeholder="无">
                </li>
                <li class="Details_li">
                    <span class="Details_sp">添加信息</span>
                </li>
                <li class="Details_li">
                    <span class="Details_sp">选择公司</span>
                    <select class="Details_company">
                        <option value="0">请选择</option>
                        @foreach($companys as $v)
                            <option value="{{ $v->id }}">{{ $v->company_name }}</option>
                            @endforeach
                    </select>
                </li>
                <li class="Details_li">
                    <span class="Details_sp">选择区域</span>
                    <select class="Details_sel">
                        <option value="0">请选择</option>
                        @if(count($virtual) > 0)
                            @foreach($virtual as $v)
                                <option value="{{ $v->id }}">{{ $v->name }}</option>
                                @endforeach
                            @endif
                    </select>
                </li>
                <li class="Details_li">
                    <span class="Details_sp" style="width:5rem;">新增虚拟区</span>
                </li>
                <li class="Details_li">
                    <span class="Details_sp">虚拟区</span>
                    <input type="text" class="Details_add" value="" placeholder="填写虚拟区">
                    <button class="Details_save">保存</button>
                </li>
            </ul>
            <div class="Details_bottom_box">
                @if($user->user_status == 0)
                    <div class="Details_bottom">
                        <span class="Details_left"><i class="fa fa-times"></i>不通过</span>
                        <span class="Details_right"><i class="fa fa-check"></i>通过</span>
                    </div>
                @elseif($user->user_status == 2 || $user->user_status == 1)
                    <div class="dis_div pass">已通过</div>
                @elseif($user->user_status == -1)
                    <div class="dis_div noPass">未通过</div>
                @endif
            </div>
        </div>
    </div>
    <div class="Details_hide" style="display:none;"></div>
</div>
<script>
    var user_id = '{{ $user->id }}';
    var area_code = '{{ $userinfo->area_code }}';
    is_weixn('.Details_bottom_box');
    iphoneX(".Details_bottom_box")
</script>
<script src="{{ env('CDN_DOMAIN_NAME') }}/js/lookDetails.js?v=1.0.1"></script>
</body>
</html>
